<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Elemento Selezionato</title>
</h:head>
<h:body onload="#{visualBean.caricaInfo(param['id'])}">
<h1> Dettaglio elemento</h1>
    <h:form>  
    Nome:
	<h:outputLabel value="#{visualBean.dettaglio.nome}"></h:outputLabel><br></br>
	Data:
	<h:outputLabel value="#{visualBean.dettaglio.data}"></h:outputLabel><br></br>
	Prezzo:
	<h:outputLabel value="#{visualBean.dettaglio.prezzo}"></h:outputLabel><br></br>
	Città Partenza:
	<h:outputLabel value="#{visualBean.volo.cittàPartenza}"></h:outputLabel><br></br>
	Città Arrivo:
	<h:outputLabel value="#{visualBean.volo.cittàArrivo}"></h:outputLabel><br></br>
	
    </h:form> 
        <p:commandButton value="Indietro" oncomplete = "window.history.back();"/> 
</h:body>
</html>